<template>
  <div class="container">
<!--    <div class="row">-->
<!--      <div class="col-md-6 mx-auto text-center">-->
<!--        <p v-if="downloading.filename !== ''">-->
<!--          {{ downloading.filename }}: {{ downloading.size }}-->
<!--        </p>-->
<!--      </div>-->
<!--    </div>-->
<!--    <div class="row">-->
<!--      <div class="col-md-6 mx-auto text-center">-->
<!--        <loader/>-->
<!--      </div>-->
<!--    </div>-->
<!--    <div class="row" style="height: 21rem;"/>-->
  </div>
</template>

<script setup lang="ts">

import Loader from "../components/Loader.vue";
import {useRouter} from 'vue-router'
const Router = useRouter()
import { useAppStore } from '../store/modules/app'
import {onMounted} from "vue";

const appStore = useAppStore()
// const app = store.app
// const downloading = app.downloading

onMounted(()=>{
  window.go.backend.App.CheckAndFetchWalletCLI().then(exists => {
    console.log(exists)
    if (exists) {
      Router.push({
        name: 'login',
        params: {message: "Please enter your credentials below to access your Molly Wallet."}
      });
    }
  });
})

</script>

